<?php

/***************************************************************
**                Linux Vod@home Streaming Server             ** 
****************************************************************

   Written by Nicolas VOISIN Aka DaNifty

****************************************************************/

include_once("./head.inc.php");
if (!file_exists('/media/'.$_SERVER['REMOTE_ADDR'])) $cmd[]="mkdir \"/var/www/www/streaming_engine/temp/".$_SERVER['REMOTE_ADDR']."\"";
$cmd[]="sudo -u root \"mount -t cifs //".$_SERVER['REMOTE_ADDR']."/FILMS /var/www/www/streaming_engine/temp/".$_SERVER['REMOTE_ADDR']."\"";

foreach ($cmd as $command) {
	shell_exec($command);
}

require_once("internet_list.inc.php");

?>
<UL>
<?php
foreach($list as $key=>$value) 
{
if ($value!="-") {
?>
<LI OnClick="createIFRAME('<?= $value ?>');" OnMouseOver="this.className='listItemHover';" OnMouseOut="this.className='listItem';" Class="listItem">

<?php
   $texte=$key;
   if (strlen($texte)>38) $texte=substr($texte,0,35)."...";
   echo "               ".$texte."\r\n";
   echo "       </LI>\r\n";
} else {
echo "<HR style=\"border:ridge\"/>\r\n";
}
}
?>

</UL>
